package com.itheima.service;

import com.itheima.constant.PageResult;
import com.itheima.constant.QueryPageBean;
import com.itheima.domain.Permission;

import java.util.List;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/10/14 19:20
 */
public interface PermissionService {

    //分页查询;
    PageResult findPage(QueryPageBean queryPageBean);

    //添加数据;
    void add(Permission permission);

    //删除数据;
    void deleteByid(Integer id);

    //编辑的数据回显;
    Permission findByid(Integer id);

    //编辑数据;
    public void update(Permission permission);

    //查询全部;
    public List<Permission> findAll();
}
